<div class="content_left left">
<?php $title_lang= field('title'); $description_lang= field('description'); ?>
<div class="content_home_left left">
	<?php if(isset($abouts)) { $count = 1; ?>
		<?php foreach ($abouts as $about) { ?>
			<div class="item <?php if($count > 1) { print "mt10";} ?>">
				<div class="left img"><a href="<?=$about->link?>"><img src="<?=img(DIR_UPLOAD_NEWS.$about->image,98,74)?>" alt="" /></a></div>
				<div class="right text">
					<div class="title"><a href="<?=PATH_URL_LANG.$about->link?>"><?=$about->$title_lang?></a></div>
					<div class="mt2 ln18"><?=CutText($about->$description_lang,234)?></div>
				</div>
				<div class="clearAll"></div>
			</div>
	<?php $count++; } } ?>

	<div class="research_corner">
		<!-- <h3>Research Corner</h3>
		<?php if(isset($researchs)) { $count = 1; ?>
		<?php foreach ($researchs as $research) { ?>
			<div class="item <?php if($count > 1) { print "mt10";} ?>">
				<div class="left img"><a href="<?=$research->link?>"><img src="<?=img(DIR_UPLOAD_NEWS.$research->image,98,74)?>" alt="" /></a></div>
				<div class="right text">
					<div class="title"><a href="<?=PATH_URL_LANG.$research->link?>"><?=$research->$title_lang?></a></div>
					<div class="mt2"><?=CutText($research->$description_lang,234)?></div>
				</div>
				<div class="clearAll"></div>
			</div>
		<?php $count++; } } ?> -->
		<div class="box_lastest_news">
			<div><img src="<?=PATH_URL?>static/images/research_title.png" alt="" class="png" /></div>
			<div>
				<ul class="list_lastest_news">
					<?php if(isset($researchs)) { $count = 1; ?>
					<?php foreach ($researchs as $research) { ?>
						<li><a href="<?=$research->link?>"><span>Research corner</span> - <?=$research->$title_lang?></a></li>
						
					<?php $count++; } } ?>

				</ul>
			</div>
		</div><!-- end .box_lastest_news -->
	</div>

</div>
<div class="content_home_right left">
	<div class="box_lastest_news" style="padding-top:0px;padding-left:0px;">
		<div style="font-size:18px;color:#5783a5;">LASTEST NEWS</div>
		<div>
			<ul class="list_lastest_news">
				<?php
					$dom=new DOMDocument('1.0','utf-8');
			    @$dom->load('http://vnexpress.net/rss/tin-moi-nhat.rss');
			    $items = $dom->getElementsByTagName("item");
			    $count = 0;
			    foreach($items as $item)
			    {

		        $titles=$item->getElementsByTagName('title');
		        $title=$titles->item(0);
		        $descriptions=$item->getElementsByTagName('description');
		        $des=$descriptions->item(0);
		        $links=$item->getElementsByTagName('link');
		        $link=$links->item(0);
	       ?>
				<li><a href="<?=$link->nodeValue?>"><span>Latest news</span> - <?=$title->nodeValue?></a></li>
				<?php
					$count++;
		    	if ($count > 8) {
		    		break;
		    	}
		    }?>

			</ul>
		</div>
	</div><!-- end .box_lastest_news -->
	<?php $answer_lang = field('answer');?>
	<?php if(isset($poll)) : ?>
		<div class="box_probe_comment">
			<div class="title"><?=lang('poll')?></div>
			<div class="mt10"><?php if(isset($poll->$title_lang)) { echo $poll->$title_lang; }?></div>
			<?php if(isset($poll_answer)) : ?>
				<?php foreach ($poll_answer as $answer) { ?>
					<div class="mt13">
					<div class="left input"><input type="radio" name="check_probe" value='<?=$answer->id?>' /></div>
					<div class="left text"><?php if(isset($answer->$answer_lang)) { echo $answer->$answer_lang; } ?></div>
					<div class="clearAll"></div>
				</div>
				<?php } ?>
			<?php endif; ?>


			<div class="mt15">
				<div class="left input">&nbsp;</div>
				<div class="left text txt_r"><a href="javascript:void(0)" onclick='return submitPoll()'><img src="<?=PATH_URL?>static/images/btn/btn_submit.png" alt="" class="png" /></a></div>
				<div class="clearAll"></div>
			</div>
		</div><!-- end .box_probe_comment -->
	<?php endif; ?>
</div>
<div class="clearAll"></div>
</div>

<div class="content_right right">
	<!-- USER BLOCK -->
	<?=Modules::run('users/block','user_info')?>

	<div id="wrap_banner">
		<?=Modules::run("banner/list_right_banner");?>
	</div>
</div>

<script type="text/javascript">

</script>
